import java.awt.Graphics2D;

/**
 *
 * @author michaelelgart
 *
 */
public interface PhysicalObj {

    /**
     * Paints the object.
     * @param pen The pen that draws the object
     */
    void paint (Graphics2D pen);

    /**
     * Updates the location of the object.
     * @param canvas The simulation where the objects are drawn
     * @param dt The amount of time between updates
     */
    void update (Simulation canvas, double dt);
    
    /**
     * Tests to see if this object matches the given id.
     * @param id The ID number you are testing
     * @return Returns true if the ID number matches, false otherwise
     */
    public boolean match (int id);
}
